<script>
export default {
  name: 'Aside',
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  },

}
</script>

<template>
  <div class="container">
    <el-menu
        default-active="/adminPage/studentInfo"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        router
    >
      <el-menu-item index="/adminPage/studentInfo">
        <span slot="title">学生信息管理</span>
      </el-menu-item>
      <el-menu-item index="/adminPage/assignDorm">
        <span slot="title">宿舍分配管理</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<style scoped>

</style>